home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-13
/
esue3v20.zip
/
ESUE3.DOC
< prev
next >
Wrap
Text File
|
1993-01-25
|
14KB
|
336 lines
Shareware Program:
------------------------------------------------------------------------
e s - U E 3
------------------------------------------------------------------------
Erhard Schreck
The program runs on all IBM PCs and IBM PC compatibles and is written in
TURBO BASIC.
Main Features:
--------------
- edits file of unlimited size (yes it's true)
- edits binary or ASCII files
- find string (also non-displayable characters)
- display filter
- character convertion from EBDIC-code to ASCII
- extracts file blocks
- break-up of huge files into smaller ones
- masked copy
The ZIP file contains 2 files
ESUE3.EXE universal editor
ESUE3.DOC documentation
Start:
------
Enter
ESUE3 filename Enter
For example
ESUE3 \dos\command.com Enter
will show the following initial screen:
---------------------------------------------------------------------------
***************************
**** Universial Editor ****
**** for ASCII or ****
**** BINARY files ****
**** without ****
**** file size limit ****
**** ****
**** view and overtype ****
**** mode ****
**** Version: 2.0 ****
**** for IBM-AT/PS2 ****
**** ******
***************************
WORK FILE: \DOS\COMMAND.COM
r≡read open w≡write open
---------------------------------------------------------------------------
As so often, you have to make a decision first. This is solely to protect
your valuable files. If you only want to look at a file just open it to
'read only' by entering the 'r'. This mode will not allow you, even by
accident, to change the file currently loaded.
In case you intend to make changes press 'w' and UE3 will first make a
working copy of the original file and then load and edit this one. This
guarantees that if anything goes wrong you still got the original.
Only when you leave UE3 with F3 the working copy will be copied to the
original file.
To toggle between 'edit' and 'overtype' mode use the INS-key. The current
setting will be displayed on the upper right corner.
Even opening in the write mode allows only the OVERTYPE editing. That
means you never can change the length of a file, what would have
frustrating consequences anyway on any executable file.
The example below shows the common COMMAND.COM under edit. The screen shows
the file part where all the error commands are located.
For example you could go ahead and change all these messages into a
different language. Just be carefull to change only readable text.
I found this place by searching for the string 'Duplicate' with the 'Alt+f'
(=find) command.
Actually the initial screen had only a width of 16 characters, and
additionally showed the hex code. 16 is the default value when you edit a
BINARY file.
To change the number of characters per line (=record length) press 'Alt+r'
and type in any value up to about 600 (this will take some time to
bring up the new screen). In this case, to scroll the screen
horizontally, use the END or HOME-key or the left and right cursor key
together with the CTRL-key.
The program also helps to break-up huge (data) files. Let's say you have to
copy a single file having a length of 2 MBytes to a diskette (you can get
gray hair over that...).
Load the file to UE3 and define a block with F7 and F8 with less than
1.4 MBytes and write that block with 'Alt+w' to a file.
Than do the same for the rest of the file.
To link the files together again you might use the DOS COPY command with
the binary option (see DOS Manual).
Alt+r≡record length
-------------------
Change the record (=display length). 1 to 600 is a valuable number
Alt+i≡Display filter
--------------------
Gives the opportunity to blank out unimportant characters or to convert
EBDIC-code to ASCII code. Note, these changes are happening only on the
screen the real data are not affected.
The two screens below show unfiltered und 'letters' filtered data.
unfiltered:
---------------------------------------------------------------------------
\DOS\COMMAND.COM Pos %= 69 File Length= 48006 * view *
Rec= 434 Col= 34 Pos= 32,942 Value=117 (h75) 2-byte-int= 28789
......R...ç... ...,...S...Ä...┐...Φ. .^.,.º.@.δ.A...B.T.T.₧.U.≤.V.q.h.╣.i.Ω.
|.j.É.¡.ñ.π.╕.Æ.╠.ß.═.9.α.¿.⌠.±...Y...ú...≈...<.0.├.D...E.a.F.ñ.G.. H.╛ I.!!
J.ê!X.∞!Y.`"Z.┌"[.-#l.╠#Ç.α#ü..$é.a$.%1 bytes free..#File cannot be copied o
nto itself...Insufficient disk space...Invalid code page...Invalid date...In
valid time...Invalid path..!Press any key to continue . . ....Unable to crea
te directory..!Volume in drive %1 has no label...Volume in drive %1 is %2...
Volume Serial Number is %1-%2..'Duplicate file name or file not found...Inva
lid path or file name...Out of environment space...File creation error...Bat
ch file missing.....Insert disk with batch file...Bad command or file name..
.Access denied ..)Content of destination lost before copy..$Invalid filename
or file not found...%1 file(s) copied...%1 file(s) .Invalid drive specifica
tion..&Code page %1 not prepared for system..+Code page %1 not prepared for
all devices...Active code page: %1...NLSFUNC not installed.. Current drive i
s no longer valid.Label not found...Syntax error...Current date is %1 %2...S
unMonTueWedThuFriSat.Enter new date (%1): .Current time is %1...Enter new ti
me: ., Delete (Y/N)?<All files in directory will be deleted!..Are you sur
e (Y/N)?.IBM DOS Version %1.%2.Invalid directory..6Invalid path, not directo
ry,..or directory not empty...Must specify ON or OFF...Directory of %1...No
Path...Invalid drive in search path...Invalid device...FOR cannot be nested.
.%Intermediate file error during pipe..&Cannot do binary reads from a device
Alt+r≡record length Alt+i≡Display filter F4≡locate ESC≡more...
ALT+o≡record offset Alt+c≡copy maske ALt+u≡unit (bin/hex/dec)
---------------------------------------------------------------------------
letters filterd:
---------------------------------------------------------------------------
\DOS\COMMAND.COM Pos %= 69 File Length= 48006 * view *
Rec= 434 Col= 34 Pos= 32,942 Value=117 (h75) 2-byte-int= 28789
R S A B T T U V q h i
j Y D E a F G H I
J X Y l a bytes free File cannot be copied o
nto itself Insufficient disk space Invalid code page Invalid date In
valid time Invalid path Press any key to continue Unable to crea
te directory Volume in drive has no label Volume in drive is
Volume Serial Number is Duplicate file name or file not found Inva
lid path or file name Out of environment space File creation error Bat
ch file missing Insert disk with batch file Bad command or file name
Access denied Content of destination lost before copy Invalid filename
or file not found file s copied file s Invalid drive specifica
tion Code page not prepared for system Code page not prepared for
all devices Active code page NLSFUNC not installed Current drive i
s no longer valid Label not found Syntax error Current date is S
unMonTueWedThuFriSat Enter new date Current time is Enter new ti
me Delete Y N All files in directory will be deleted Are you sur
e Y N IBM DOS Version Invalid directory Invalid path not directo
ry or directory not empty Must specify ON or OFF Directory of No
Path Invalid drive in search path Invalid device FOR cannot be nested
Intermediate file error during pipe Cannot do binary reads from a device
Alt+f≡find Alt+L≡load file Alt+w≡save block ins≡edit ESC≡more...
ESC≡help F2≡DIR F3≡exit F7≡block beg F8≡block end F9≡DOS Alt+m≡file mode
---------------------------------------------------------------------------
F4≡locate
---------
Allows to position to a specific place within the file, By hitting F4 you
get a prompt to locate either to a record number or to a Byte number.
Another method to browse through a file is by hitting 'Alt+1' ... 'Alt+9'
or 'Alt+0'. This locates the cursor to 10%, 90% or 100% (=the end) of the
file.
ALT+o≡record offset
-------------------
This is a very helpful feature. It helps e.g. to skip a header part in a
file that mainly contains records of a fixed length (like DBASE etc).
Alt+c≡copy maske
----------------
Allows to extract any periodic pattern. Again let's assume you have a data
file containing data in the form x1,y1,x2,y2....xn,yn, and each number
represented by 4 bytes.
To extract all x values the copy mask wuold look like
11110000
To extract e.g. all odd x,y pairs the mask would look like
1111111100000000
ans so on. Any pattern up to a length of 70 characters is possible.
ALt+u≡unit (bin/hex/dec/oct/all)
--------------------------------
Shows on the left side of the screen all displayable characters and
additionally their bin/hex.... counterparts.
to get a readable screen the record length has to be choosen right
If all number systems shall be displayed at once a record lenth of 1 is
necessary.
Example: Initial opening screen with record length=16 and HEX characters
\DOS\COMMAND.COM Pos %= 0 File Length= 48006 * view *
Rec= 3 Col= 1 Pos= 33 Value= 0 (h0 ) 2-byte-int= 0
Θ]. x. ╖. u. E9 5D 14 00 78 14 00 00 B7 0E 00 00 75 0D 00 00
à. 85 11 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
√Φd ... ... 00 00 00 00 00 FB E8 64 00 1E 0E 2E FF 2E 04 01
√ΦY ... ...√ΦN . FB E8 59 00 1E 0E 2E FF 2E 08 01 FB E8 4E 00 1E
.. ...√ΦC ... .. 0E 2E FF 2E 0C 01 FB E8 43 00 1E 0E 2E FF 2E 10
.Φ9 ... ...Φ/ .. 01 E8 39 00 1E 0E 2E FF 2E 14 01 E8 2F 00 1E 0E
. ...Φ% ... ...Φ 2E FF 2E 18 01 E8 25 00 1E 0E 2E FF 2E 1C 01 E8
. ... . .Φ. ... 1B 00 1E 0E 2E FF 2E 20 01 E8 11 00 1E 0E 2E FF
.$.Φ. ... .(.£.Ç 2E 24 01 E8 07 00 1E 0E 2E FF 2E 28 01 9C 2E 80
>4. t.Φ. s.Φ. ¥├ 3E 34 01 00 74 08 E8 0C 00 73 03 E8 1A 00 9D C3
Ω5. SP┤.. .0..└ EA 35 01 00 00 53 50 B4 07 2E FF 1E 30 01 0B C0
X[u.∙├°├SP┤.. .0 58 5B 75 02 F9 C3 F8 C3 53 50 B4 05 2E FF 1E 30
..└t.X[├δ■═!·..╝ 01 0B C0 74 03 58 5B C3 EB FE CD 21 FA 0E 17 BC
>.√..£.á@.¿Çt.$ 3E 05 FB 0E 1F 9C 2E A0 40 05 A8 80 74 07 24 7F
. .,..Ç&@.¥Θb . 2E FF 1E 2C 01 2E 80 26 40 05 7F 9D E9 62 FF 02
...A. ... 00 00 01 05 02 41 02 00 00 02 0C 02 00 00 00 00
....,..*. 00 00 00 00 00 02 1E 02 03 2C 02 03 2A 02 00 00
. 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01
... .8. .i. 05 02 02 00 00 01 38 02 20 02 69 04 00 00 00 00
Alt+f≡find Alt+L≡load file Alt+w≡save block ins≡edit ESC≡more...
ESC≡help F2≡DIR F3≡exit F7≡block beg F8≡block end F9≡DOS Alt+m≡file mode
Example: record length=1 and all number systems
\DOS\COMMAND.COM Pos %= 0 File Length= 48006 * view *
Rec= 1 Col= 1 Pos= 1 Value=233 (hE9) 2-byte-int= 24041
Byte-No HEX DEC OCT BIN
Θ 001: E9 233 351 11101001
] 002: 5D 093 135 01011101
. 003: 14 020 024 00010100
004: 00 000 000 00000000
x 005: 78 120 170 01111000
. 006: 14 020 024 00010100
007: 00 000 000 00000000
008: 00 000 000 00000000
╖ 009: B7 183 267 10110111
. 010: 0E 014 016 00001110
011: 00 000 000 00000000
012: 00 000 000 00000000
u 013: 75 117 165 01110101
. 014: 0D 013 015 00001101
015: 00 000 000 00000000
016: 00 000 000 00000000
à 017: 85 133 205 10000101
. 018: 11 017 021 00010001
019: 00 000 000 00000000
020: 00 000 000 00000000
Alt+f≡find Alt+L≡load file Alt+w≡save block ins≡edit ESC≡more...
ESC≡help F2≡DIR F3≡exit F7≡block beg F8≡block end F9≡DOS Alt+m≡file mode
Alt+m=file mode
---------------
This allows to chose the appropriate file mode. If the program finds an
ASCII character 26 at the end of the file it's very likely to be a text
file and UE3 will open it in text mode. Anything else will be opened as
binary file.
Some text editors don't append character 26, so UE3 will open it in binary
mode. This will be a reason to change the mode manually with 'Alt+m'
Known bugs:
-----------
The editor keeps only about 20 records in memory. If you try to scroll
further up or down a new file portion has to be loaded. Unfortunately thsi
doesn't work perfectly with the consequence that you cursor position might
be slightly of. It's better to use the PdUp or PgDn-keys to brows through a
file or the F4-key or alt+1 ... Alt+0.
Scrolling within one loaded block works well.
The Copyright is owned by Erhard Schreck.
Compuserve 70303.744
Nobody is allowed to distribute this program for commercial use.
If you are happy with it you may send a check (I accept any amount,
until I've catched up with Bill Gates).
Erhard Schreck
1098 Foxchase Dr. #379
San Jose, CA 95123
If you are not happy, don't send a check, but let me know.
Disclaimer:
-----------
I'm not responsible for any data loss or damage that might be related to
this program (even it never happened to me).
Have fun,
Erhard Schreck